package com.ctshk.rpc.order.ship.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.model.TokenUser;
import com.ctshk.rpc.order.ship.dto.InsuranceReceiptDTO;
import com.ctshk.rpc.order.ship.req.ShipOrderReceiptReq;

import java.util.List;

/**
 * <p>
 * 船票订单收据 服务类
 * </p>
 *
 * @author 刘蕾
 * @since 2021-03-31
 */
public interface IShipOrderReceiptService{


    /**
     * 新增收据记录 在订单收款成功后
     * @param orderId
     * @return
     */
    Result add(Long orderId, TokenUser tokenUser);


    /**
     * 修改订单收据
     * @param req
     * @param tokenUser
     * @return
     */
    Result edit(ShipOrderReceiptReq req, TokenUser tokenUser);

    /**
     * 收据详情 orderId 和主键 Id 可任选其一进行获取
     * @param orderId
     * @return
     */
    Result info(Long orderId,TokenUser tokenUser);

    /**
     * 保单收据
     * @param id
     * @param currentUser
     * @return
     */
    Result<List<InsuranceReceiptDTO>> insuranceReceipt(Long id, TokenUser currentUser);
}
